package com.state.pattern.state;

import com.state.pattern.RaffleActivity;

/**
 * @author chenchen
 * @description 奖品发放完毕状态，当我们activity 改变成 DispenseOutState， 抽奖活动结束
 * @date 2023/11/8 17:21
 */
public class DispenseOutState extends State {

    private RaffleActivity activity;

    public DispenseOutState(RaffleActivity activity) {
        this.activity = activity;
    }

    @Override
    public void deductMoney() {
        System.out.println("奖品发送完了，请下次再参加");
    }

    @Override
    public boolean raffle() {
        System.out.println("奖品发送完了，请下次再参加");
        return false;
    }

    @Override
    public void dispensePrize() {
        System.out.println("奖品发送完了，请下次再参加");
    }
}
